package com.siloam.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.siloam.service.UserService;

@Controller
@RequestMapping("/web/login.do")
public class LoginController {

	@Resource
	private UserService userService;
	
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	@RequestMapping(params="method=searchUser")
	@ResponseBody
	public String getEntricyPwd(String pwd){
		return userService.getEncryptUtil().encrypt(pwd);
	}
	
}
